package com.linewell.service;


import com.linewell.pojo.Article;
import com.linewell.pojo.ArticleVo;
import com.linewell.pojo.Msg;

import java.util.List;

/**
 * @Title: ssm2
 * @description:
 * @author: hyuhuang@linewell.com
 * @since:2018/1/17 13:43
 */
public interface IArticleService {

    List<Article> selectAllArticle();

    List<Article> selectArticleWithUserId(Long userId);

    Msg addArticle(Article article);

    Msg updataArticleZan(Long Article);

    Article selectArticleWithArticleId(Long articleId);

    List<Article> selectById(Long userId);

    List<Article> selectByTagId(Long tagId, int page);

    Msg selectBySort(Integer page, String sort);

    Msg searchArticle(String keyword, String page);

    Msg getBestRank(int page);

    List<ArticleVo> searchArticleKey(String articleKey);

    List<ArticleVo> searchAllArticle(int page, int limit);

    Msg updataArticleCheck(Long articleId);

    Msg deleteArticleByArticleId(Long articleId);

    int getCount();

    Msg updateArticle(String field, String value, Long articleId);

    Msg deleteAllArticle(String articleIds);

    int getCountIsCheck();

    List<ArticleVo> searchAllArticleIsCheck(int page, int limit);

    Msg updateArticle1(Article article);
}
